package com.sti.framework.models.User.data;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sti.framework.core.data.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * user 权限表
 *
 *
 * enty 实物
 *
 * @author AARON
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "user_authority", autoResultMap = true)
@ApiModel(value = "user_authority", description = "所有接口信息")
public class Authority extends AbstractEntity {

    /**
     * 说明
     */
    @ApiModelProperty(value = "说明", required = true, example = "这里是说明")
    @NotBlank(message = "请输入说明")
    @TableField(value = "describes" )
    private String describes;

    /**
     * tag
     */
    @ApiModelProperty(value = "tag", required = true, example = "这里是tag")
    @NotBlank(message = "请输入tag")
    @TableField(value = "tag" )
    private String tag;

    /**
     * 模块名称
     */
    @ApiModelProperty(value = "模块名称", required = true, example = "这里是模块名称")
    @NotBlank(message = "请输入模块名称")
    @TableField(value = "model_name" )
    private String model_name;

    /**
     * 表名称
     */
    @ApiModelProperty(value = "表名称", required = true, example = "这里是表名称")
    @NotBlank(message = "请输入表名称")
    @TableField(value = "table_name" )
    private String table_name;

    /**
     * 隐藏（是否后台可设置）
     */
    @ApiModelProperty(value = "隐藏", required = true, example = "这里是隐藏")
    @TableField(value = "hide" )
    private Boolean hide = Boolean.FALSE;
}
